package com.java.context;

import com.java.model.AdminUser;

/**
 * 存储登录用户
 * @author Administrator
 *
 */
public class AuthContext {
	
	private static AdminUser currentUser = null;
	
	public static AdminUser getCurrentUser() {
		return currentUser;
	}
	
	public static void setCurrentUser(AdminUser currentUser) {
		AuthContext.currentUser = currentUser;
	}
	
	public static boolean isLogin() {
		return currentUser != null;
	}

}
